package projectStopWatch;

import java.awt.BorderLayout;

import javax.swing.JApplet;
import javax.swing.JFrame;



public class StopWatchApplet extends JApplet {
	public void init() {
		setSize(250, 250);		
		StopWatch watch = new StopWatch();
		add(watch);
	}
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.setTitle("Stop Watch");
		frame.setLayout(new BorderLayout());
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.add(new StopWatchApplet());
		
		frame.setSize(250, 250);
		frame.setLocationRelativeTo(null); // Center the frame
		frame.setResizable(false);
		frame.setVisible(true);
	}

}
